updating oE check_all_blocks

check_all_blocks

include std/machine.e 
check_all_blocks() 

Scans the list of registered blocks for any corruption.

Comments:

safe.e maintains a list of acquired memory blocks. Those gained through allocate are automatically included. Any other block, for debugging purposes, must be registered by register_block and unregistered by unregister_block.

The list is scanned and, if any block shows signs of corruption, it is displayed on the screen and the program terminates. Otherwise, nothing happens.

Unless SAFE is defined, this routine does nothing. It is there to make switching between debugged and normal version of your program easier.

See Also:

register_block, unregister_block

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu